package com.heiye.blog.oss.biz.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: heiye
 * @date: 2025/11/21 下午3:07
 * @version: v1.0.0
 * @description: 文件存储类型枚举
 */
@Getter
@AllArgsConstructor
public enum FileStorageTypeEnum {
    ALIYUN_OSS("aliyun-oss"),
    ;

    private final String type;

    public static FileStorageTypeEnum getStorageTypeEnum(String type) {
        for (FileStorageTypeEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }
        }
        return null;
    }
}
